<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html 	xmlns="http://www.w3.org/1999/xhtml"
		xmlns:h="http://java.sun.com/jsf/html"
		xmlns:f="http://java.sun.com/jsf/core"
		xmlns:p="http://primefaces.org/ui"
		xmlns:ui="http://java.sun.com/jsf/facelets">

<h:head></h:head>

<h:body>
        
        <div id="logoHomePage" align="left">
			<a href="homepage.xhtml"><img src="grafica\TravelDream_Logo.gif" width="150" height="75"/></a>
		</div>
		
		<div id="logout" align="right">
        	<h:form>
        	          	<a href="admin\index.xhtml">Pagina Amministrazione</a>
        	
				<h:commandButton action="#{logoutBean.logout}" value="Logout" />
			</h:form>
		</div>
		
		<div id="formCancellaProdottoBase">
		
		<p:tabView orientation="left">  
		    <p:tab title="ALBERGO">  
		    
				<h:form id="formCancellaA">  
		        <h:panelGrid columns="2" cellpadding="10">  
		        
		        	<p:dataTable id="pacchettoBaseA" var="a" value="#{prodottoBaseBean.alberghiDTO}" rowKey="#{a.idProdottoBase}" 
		 					selection="#{prodottoBaseBean.nuovo}" selectionMode="single">
		 					
					        <p:column headerText="IdProdottoBase">  
					            #{a.idProdottoBase}  
					        </p:column>  
					  
					        <p:column headerText="Nome">  
					            #{a.nome}  
					        </p:column>  
		  
		     				 <p:column headerText="Citta">  
					            #{a.citta}  
					        </p:column>  
					        
					         <p:column headerText="Indirizzo">  
					            #{a.indirizzo}  
					        </p:column>  
					        
					        <p:column headerText="Stelle">  
					            #{a.stelle}  
					        </p:column> 
		
		    			</p:dataTable> 
		             
		       	</h:panelGrid>  
		       		
					<p:commandButton value="Cancella" action="#{prodottoBaseBean.canc()}" />
		   			
				</h:form> 
					
		    </p:tab>
		    
		  
		    <p:tab title="VOLO">
		    
		    	<h:form id="formCancellaV">  
		        <h:panelGrid columns="2" cellpadding="10">  
		        
		      			<p:dataTable id="pacchettoBaseV" var="v" value="#{prodottoBaseBean.voliDTO}" rowKey="#{v.idProdottoBase}"
		 		 			selection="#{prodottoBaseBean.nuovo}" selectionMode="single">
		 
					        <p:column headerText="IdProdottoBase">  
					            #{v.idProdottoBase}  
					        </p:column>  
					  
					        <p:column headerText="AeroportoArrivo">  
					            #{v.aeroportoArrivo}  
					        </p:column>  
		  
		     				 <p:column headerText="AeroportoPartenza">  
					            #{v.aeroportoPartenza}  
					        </p:column>  
					        
					         <p:column headerText="Compagnia">  
					            #{v.compagnia}  
					        </p:column>  
		  
		    			</p:dataTable> 
		
		       	</h:panelGrid>  

					<p:commandButton value="Cancella" action="#{prodottoBaseBean.canc()}" />
		   			
				</h:form>
						       	
		    </p:tab>
		    
		  
		    <p:tab title="ESCURSIONE"> 
		    
		  		<h:form id="formCancellaE">  
		        <h:panelGrid columns="2" cellpadding="10">  
		        
		         		<p:dataTable id="pacchettoBaseE" var="e" value="#{prodottoBaseBean.escursioniDTO}" rowKey="#{e.idProdottoBase}"  
		 		 					selection="#{prodottoBaseBean.nuovo}" selectionMode="single">
		 
					        <p:column headerText="IdProdottoBase">  
					            #{e.idProdottoBase}  
					        </p:column>  
					  
					        <p:column headerText="Descrizione">  
					            #{e.descrizione}  
					        </p:column>  
		  
		    			</p:dataTable>  
		
		       	</h:panelGrid>  

					<p:commandButton value="Cancella" action="#{prodottoBaseBean.canc()}" />
		   			
				</h:form>
		       	
		    </p:tab>
		    
		 
		</p:tabView>  
		   
		
		   			
		       
</div>
		
</h:body>
</html>
